﻿<%@ Page Title="" Language="C#" MasterPageFile="~/main2.master" AutoEventWireup="true" CodeFile="PersonCenter.aspx.cs" Inherits="PersonCenter" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <link href="css/detail.css" rel="stylesheet" type="text/css" />
    <link href="css/PersonCenter.css" rel="stylesheet" type="text/css" />
    <script src="js/PersonCenter.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="width:500px; height:400px">
  <div style="MARGIN: 20px 0px; TEXT-ALIGN: left; height:24px">
    <div style="height:23px; width:400px; float:left">
  排序方式： 
      <asp:DropDownList ID="ddlLostProperty" runat="server" 
          onselectedindexchanged="ddlLostProperty_SelectedIndexChanged" 
          AutoPostBack="True">
          <asp:ListItem Value="0" Selected="True">总信息</asp:ListItem>
          <asp:ListItem Value="1">寻物启事</asp:ListItem>
          <asp:ListItem Value="2">招领启事</asp:ListItem>
      </asp:DropDownList>
      <asp:Button  
            style="BORDER-RIGHT: seagreen 1px solid; BORDER-TOP: seagreen 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 12px; BORDER-LEFT: seagreen 1px solid; WIDTH: 57px; COLOR: black; BORDER-BOTTOM: seagreen 1px solid; HEIGHT: 16px; height:20px"  
            runat="server" ID="orderByTime" CssClass="anniu" Text="时间↑" onclick="orderByTime_Click" 
            />
            
     </div>
     <div style="float:right; height:23px"><a href="allreply.aspx" style="color:#FF9900;">留言板</a></div>
   </div>


  <center>
  <table id="tbInfo" width="480px" style="text-align:center">
    <asp:Repeater ID="rpPersonCenter" EnableViewState="true" runat="server">
            <ItemTemplate>
            
                   <tr onmouseover="changeColor(this)" onmouseout="changeBCColor(this)" style="background-color:#f5fafa; height:56px;"> 
                   <td width="100px"><%#Eval("LostProperty")%></td>
                   <td><%#Eval("GoodsName")%></td>
                   <td><a href='detail.aspx?id=<%#Eval("LId") %>'><%#Eval("Feature") %></a></td>                   
                   <td><%#Eval("Time","{0:yyyy-MM-dd}") %></td>
                   <td width="40px"><a onclick="return delPCenter()" href='delPCenter.ashx?id=<%#Eval("LId") %>&img=<%#Eval("Image")%>'>删除</a></td>
                   <td width="40px"><a href='ModifyPCenter.aspx?id=<%#Eval("LId") %>'>修改</a></td>
                   </tr>
            </ItemTemplate>
            <AlternatingItemTemplate>
                   <tr onmouseover="changeColor(this)" onmouseout="changeBCColor(this)" style="background-color:#fff; height:56px;"> 
                   <td width="100px"><%#Eval("LostProperty")%></td>
                   <td><%#Eval("GoodsName") %></td>
                   <td><a href='detail.aspx?id=<%#Eval("LId") %>'><%#Eval("Feature") %></a></td>                   
                   <td><%#Eval("Time","{0:yyyy-MM-dd}") %></td>
                   <td width="40px"><a onclick="return delPCenter()" href='delPCenter.ashx?id=<%#Eval("LId") %>'>删除</a></td>
                   <td width="40px"><a href='ModifyPCenter.aspx?id=<%#Eval("LId") %>'>修改</a></td>
                   </tr>
            </AlternatingItemTemplate>
    </asp:Repeater>
  </table>
  </center>
  </div>
  <div id="divPage">
  
       
      第 <asp:Label ID="pageNum" runat="server" Text="Label"></asp:Label>
&nbsp;页   
      共<asp:Label ID="pageCount" runat="server" Text="Label"></asp:Label>
&nbsp;页>   
  
        <asp:Button ID="btnpre" runat="server" CssClass="anniu" Text="上一页" onclick="btnpre_Click" 
            />
&nbsp;
       <asp:Button ID="btnnext" runat="server" CssClass="anniu" Text="下一页" onclick="btnnext_Click" 
            />
       <asp:TextBox ID="txtjump" runat="server" Width="59px"></asp:TextBox>
       <asp:Button ID="btnjump" runat="server" CssClass="anniu" 
            Text="跳转" ValidationGroup="group1" Width="54px" 
          onclick="btnjump_Click" />
       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
          ErrorMessage="*" ValidationGroup="group1" ControlToValidate="txtjump" ForeColor="Red"></asp:RequiredFieldValidator>
      <asp:CompareValidator ID="CompareValidator1" runat="server" 
          ValidationGroup="group1"  ErrorMessage="*" ControlToValidate="txtjump" 
          ForeColor="Red" Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator>
  </div>
       

</asp:Content>

